package com.hdc.hdc.warehouseManage.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.corundumstudio.socketio.SocketIOClient;
import com.hdc.hdc.warehouseManage.entity.vo.MsgBean;

@Service("socketIOResponse")
public class SocketIOResponse {
	
	
	private static final Logger log = LoggerFactory.getLogger(SocketIOResponse.class);

	
	public void sendEvent(SocketIOClient client, MsgBean bean) {
		log.info("推送消息");
        client.sendEvent("OnMSG", bean);
    }

}
